<?php

class Html{
	
	private $content = null;
	private $headContent = null;
	
	public function addContent($content){
		$this->content .= $content;
	}
	
	public function addHeadContent($content){
		$this->headContent .= $content;
	}
	
	public function setContent($content){
		$this->content = $content;
	}
	
	public function getContent(){
		return $this->content;
	}
	
	public function dump(){
		
		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
		echo '<html>';
		echo '<head>';
		echo '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />';
		echo '<title>Insert title here</title>';
		echo '<link rel="stylesheet" type="text/css" href="../css/default.css" />';
		echo $this->headContent;
		echo '</head>';
		echo '<body>';
		echo $this->content;
		echo '</body>';
		echo '</html>';
	}
}